function dateformat(value){
    var re = /\d{2}-\d{2} \d{2}:\d{2}/;
    var date = value.match(re)[0];
    return date
}

export default dateformat;